<template>
  <div class="user-dialog-box">
    <div class="container">
      <div class="content">
        <span>{{ content }}</span>
      </div>
    </div>
    <div class="primary-selection" v-if="primarySelection">
      <img :src="primarySelectionIcon" alt="" class="primary-selection-icon" />
      <div class="content">
        <span>“{{ primarySelection }}”</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    content: {
      type: String,
      default: '',
      required: true
    },
    primarySelection: {
      type: String,
      default: '',
      required: false
    }
  },
  data() {
    return {
      primarySelectionIcon:
        '//i.thsi.cn/staticS3/mobileweb-upload-static-server.img/appid_2/sunmao/931b81ce-33f0-430e-92d4-46d4f6321a50.png'
    };
  },
  methods: {}
};
</script>
<style lang="less" scoped>
.user-dialog-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 400px;
  margin-top: 24px;
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 97, 255, 0.16);
    padding: 12px 16px;
    border-radius: 12px 2px 12px 12px;
    .content {
      font-family: PingFangSC-Regular;
      font-size: 16px;
      color: #e9e9f2;
      text-align: left;
      line-height: 28px;
      font-weight: 400;
    }
  }
  .primary-selection {
    display: flex;
    align-items: center;
    background: rgba(135, 135, 156, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    padding: 5px 8px;
    &-icon {
      width: 20px;
      height: 20px;
      margin-right: 4px;
    }
    .content {
      font-family: PingFangSC-Regular;
      font-size: 14px;
      color: #a1a1b3;
      text-align: right;
      line-height: 22px;
      font-weight: 400;
    }
  }
}
</style>
